<?php
/**
 * Created by PhpStorm.
 * User: EDZ
 * Date: 2020/6/22
 * Time: 16:39
 */

namespace DesignPatterns\Behavioral\Template;


abstract class Game
{
    protected abstract function initialize();

    protected abstract function startPlay();

    protected abstract function endPlay();

    public final function play() {
        $this->initialize();
        $this->startPlay();
        $this->endPlay();
    }
}